<template>
  <div class="lb-color-list" v-if="colorList.length > 0">
    <top-nav />
    <div class="page-main">
      <div class="flex-warp">
        <div class="mt-md mr-lg">当前配色方案：</div>
        <div class="flex-1">
          <div class="flex-warp">
            <div v-for="(item, index) in colorList" :key="index">
              <div
                @click="changeIndex(index)"
                class="color-item"
                :class="[{ active: index === colorInd }]"
                v-if="index < colorLen - 1"
              >
                <div class="flex-center">
                  <div
                    class="primaryColor"
                    :style="{ background: item.primaryColor }"
                  ></div>
                  <div
                    class="subColor"
                    :style="{ background: item.subColor }"
                  ></div>
                </div>
                <i
                  class="iconfont icon-xuanze-fill flex-center"
                  v-if="index === colorInd"
                ></i>
              </div>
            </div>
            <div
              @click="changeIndex(colorLen - 1)"
              class="color-item"
              :class="[{ active: colorInd === colorLen - 1 }]"
              style="width: auto; padding: 0 2px"
            >
              <div class="flex-center" style="margin-top: 4px">
                <el-color-picker
                  size="medium"
                  style="margin-right: 4px"
                  v-model="colorList[colorLen - 1].primaryColor"
                ></el-color-picker>
                <el-color-picker
                  size="medium"
                  v-model="colorList[colorLen - 1].subColor"
                ></el-color-picker>
              </div>
              <div class="flex-y-center" style="height: 18px; margin-top: 4px">
                <div style="line-height: 18px; font-size: 10px">自定义配色</div>
                <i
                  class="iconfont icon-xuanze flex-center"
                  :class="[
                    {
                      'icon-xuanze-fill': colorInd === colorLen - 1
                    }
                  ]"
                  style="margin: 0"
                ></i>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="space-lg"></div>
      <div class="space-lg"></div>
      <div class="space-lg"></div>
      <div class="flex-warp">
        <div class="mr-lg">当前风格示例：</div>
        <div class="flex-1 flex-y-center">
          <div class="color-page fill-body rel">
            <img class="navbar-img abs" :src="navbar" />
            <div
              class="navbar-title"
              :style="{ background: colorList[colorInd].primaryColor }"
            >
              <div class="flex-center c-base">上门预约</div>
            </div>
            <div class="tab-info rel">
              <img class="banner-img" :src="banner" />
              <div class="tab-list flex-warp fill-base radius abs">
                <div
                  class="tab-item flex-center c-title rel"
                  v-for="(item, index) in tabList"
                  :key="index"
                >
                  {{ item.title }}
                  <div
                    class="tab-item-sanjao abs"
                    :style="{ right: item.title.length === 3 ? '-8px' : '' }"
                    v-if="item.is_sign"
                  >
                    <i class="up iconfont icon-up-fill rel"></i>
                    <i class="down iconfont icon-down-fill rel"></i>
                  </div>
                </div>
              </div>
            </div>

            <div
              class="service-item flex-center fill-base"
              v-for="(item, index) in serviceList"
              :key="index"
            >
              <img class="cover" :src="item.cover" />
              <div class="flex-1 ml-md" style="width: 208px">
                <div class="flex-between">
                  <div
                    class="f-paragraph c-title text-bold ellipsis"
                    style="max-width: 100px"
                  >
                    {{ item.title }}
                  </div>
                  <div class="f-icontext c-caption">
                    {{ item.total_sale }}人已预约
                  </div>
                </div>
                <div
                  class="f-icontext c-caption mt-sm mb-sm ellipsis"
                  style="height: 16px; width: 164px"
                >
                  {{ item.sub_title || '' }}
                </div>
                <div class="flex-between mt-md">
                  <div class="flex-y-center f-desc c-caption ellipsis">
                    <div class="time-long flex-center">
                      {{ item.time_long }}分钟
                    </div>
                    <div class="flex-y-baseline f-icontext c-warning">
                      <div class="small-text">¥</div>
                      <div class="f-title">
                        {{ item.price }}
                      </div>
                    </div>
                    <div class="text-delete small-text" v-if="item.init_price">
                      ¥{{ item.init_price }}
                    </div>
                  </div>
                  <div
                    class="item-btn flex-center f-caption c-base"
                    :style="{ background: colorList[colorInd].primaryColor }"
                  >
                    选择技师
                  </div>
                </div>
              </div>
            </div>

            <div class="tabbar-list fill-base abs">
              <div class="flex-warp b-1px-t">
                <div
                  class="tabbar-item flex-center flex-column"
                  :style="{
                    color: index === 0 ? colorList[colorInd].primaryColor : ''
                  }"
                  v-for="(item, index) in tabBar"
                  :key="index"
                >
                  <i
                    class="iconfont"
                    :class="index === 0 ? item.selected_img : item.default_img"
                  ></i>
                  <div class="text">{{ item.name }}</div>
                </div>
              </div>
            </div>
          </div>
          <!-- 技师 -->
          <div class="color-page fill-body ml-lg mr-lg rel">
            <img class="navbar-img abs" :src="navbar" />
            <div
              class="navbar-title"
              :style="{ background: colorList[colorInd].primaryColor }"
            >
              <div class="flex-center f-desc c-base">
                <i
                  class="iconfont iconjuli ml-md mr-sm"
                  style="font-size: 20px"
                ></i>
                <div class="max-300 ellipsis">河南省郑州市</div>
                <i class="iconfont icon-down" style="transform: scale(0.5)"></i>
                <div class="flex-1"></div>
              </div>
            </div>

            <div class="fix-info fill-body rel">
              <div
                class="space-top abs"
                :style="{ background: colorList[colorInd].primaryColor }"
              ></div>
              <div class="search-info fill-base pt-lg pl-lg pr-lg pb-md abs">
                <div class="flex-center">
                  <div class="city-info flex-y-center c-title">
                    郑州<i class="iconfont iconshaixuanxia-1 ml-sm"></i>
                  </div>
                  <div class="search-item flex-1 fill-body radius">
                    <i class="iconfont iconsousuo1 mr-sm"></i>请输入技师姓名
                  </div>
                </div>
                <div class="order-tablist flex-warp fill-base">
                  <div
                    class="tablist-item flex-center rel"
                    v-for="(item, index) in technicianTabList"
                    :key="index"
                    :style="{
                      width: 100 / technicianTabList.length + '%',
                      color:
                        index === 0 ? colorList[colorInd].primaryColor : '#333'
                    }"
                  >
                    {{ item.title }}
                    <div
                      class="line abs"
                      :style="{ background: colorList[colorInd].primaryColor }"
                      v-if="index === 0"
                    ></div>
                  </div>
                </div>
              </div>
            </div>

            <div
              class="coach-item flex-center fill-base rel"
              v-for="(item, index) in coachList"
              :key="index"
            >
              <div
                class="top-tag flex-center f-icontext abs"
                v-if="item.coach_type_status == 1"
              >
                <div class="text">优</div>
              </div>
              <div class="flex-center flex-column">
                <div class="item-img rel">
                  <img class="item-img radius" :src="item.work_img" />
                  <img
                    class="abs"
                    :class="[`${imgType[item.coach_type_status]}-img`]"
                    :src="require(`@/./style/image/${imgType[item.coach_type_status]}.png`)"
                    v-if="item.coach_type_status"
                  />       
                </div>
                <div
                  class="item-tag flex-center f-icontext c-base radius"
                  :style="{
                    background:
                      item.text_type === 1
                        ? service_btn_color
                        : item.text_type == 3
                        ? colorList[colorInd].primaryColor
                        : '',
                    color:
                      item.text_type === 1
                        ? service_font_color
                        : item.text_type === 3
                        ? '#fff'
                        : ''
                  }"
                >
                  <div class="scale-8">
                    {{ textType[item.text_type] }}
                  </div>
                </div>
              </div>
              <div class="flex-1 ml-md max-510">
                <div class="flex-between">
					<div>
						<div class="flex-y-center f-title c-title">
							<div class="text-bold max-200 ellipsis">{{item.coach_name}}</div>
							<div class="more-img flex-center ml-sm f-caption"
							  :style="{
								color: colorList[colorInd].primaryColor,
								border: `1px solid ${colorList[colorInd].primaryColor}`
							  }">更多照片</div>
						</div>						
						<div class="flex-y-center f-icontext mt-sm mb-md pb-md b-1px-b">
							<div class="flex-y-center"><i class="iconfont iconyduixingxingshixin icon-font-color"></i>
								<div class="star-text">{{item.star}}</div>
							</div>
							<div class="order-num">
								已服务 {{item.order_num > 9999 ? '9999+' : item.order_num}}单</div>						
							<div class="flex-center" style="margin-left: 8px;">
								<i class="iconfont iconjuli" :style="{color: colorList[colorInd].primaryColo}"></i>
								<div class="f-icontext c-title">{{item.distance}}</div>
							</div>
						</div>				
					</div>				
                  <div class="can-service-btn f-caption c-base radius-10" :style="{border: `1px solid ${colorList[colorInd].primaryColor}`}" v-if="item.near_time">			  
					<div class="text" :style="{background:colorList[colorInd].primaryColor}">最早可约</div>
                    <div class="time" :style="{color:colorList[colorInd].primaryColor}">{{'时间'+item.near_time+''}}</div>
				  </div>
				</div>
                <div class="flex-between">
                  <div class="flex-y-center f-desc c-caption">
                    <div class="flex-y-center scale-8">
                      <i class="iconfont iconpinglun mr-sm"></i
                      >{{ item.comment_num }}
                    </div>
                    <div class="flex-y-center scale-8">
                      <i
                        class="iconfont mr-sm"
                        :class="[
                          { iconshoucang1: !item.is_collect },
                          { iconshoucang2: item.is_collect }
                        ]"
                        :style="{
                          color: item.is_collect
                            ? colorList[colorInd].primaryColor
                            : ''
                        }"
                      ></i
                      >{{ item.collect_num }}
                    </div>
                    <div class="flex-y-center scale-8">
                      <i class="iconfont iconxiangqing mr-sm"></i>
                      <div class="f-icontext">详情</div>
                    </div>
                  </div>

                  <div
                    class="item-btn flex-center f-caption c-base"
                    :style="{
                      background: item.user_id
                        ? colorList[colorInd].primaryColor
                        : '#888'
                    }"
                  >
                    预约TA
                  </div>
                </div>
              </div>
            </div>

            <div class="tabbar-list fill-base abs">
              <div class="flex-warp b-1px-t">
                <div
                  class="tabbar-item flex-center flex-column"
                  :style="{
                    color: index === 1 ? colorList[colorInd].primaryColor : ''
                  }"
                  v-for="(item, index) in tabBar"
                  :key="index"
                >
                  <i
                    class="iconfont"
                    :class="index === 1 ? item.selected_img : item.default_img"
                  ></i>
                  <div class="text">{{ item.name }}</div>
                </div>
              </div>
            </div>
          </div>
          <!-- 订单 -->
          <div class="color-page fill-body rel">
            <img class="navbar-img abs" :src="navbar" />
            <div
              class="navbar-title"
              :style="{ background: colorList[colorInd].primaryColor }"
            >
              <div class="flex-center c-base">订单</div>
            </div>
            <div class="order-tablist flex-warp fill-base">
              <div
                class="tablist-item flex-center rel"
                v-for="(item, index) in orderTabList"
                :key="index"
                :style="{
                  width: 100 / orderTabList.length + '%',
                  color: index === 0 ? colorList[colorInd].primaryColor : '#333'
                }"
              >
                {{ item.title }}
                <div
                  class="line abs"
                  :style="{ background: colorList[colorInd].primaryColor }"
                  v-if="index === 0"
                ></div>
              </div>
            </div>

            <div
              class="order-item mt-md ml-md mr-md pd-lg fill-base radius-16"
              v-for="(item, index) in orderList"
              :key="index"
            >
              <div class="flex-between pb-lg b-1px-b">
                <div class="f-paragraph c-title max-380 ellipsis">
                  订单号：{{ item.order_code }}
                </div>
                <!-- // pay_type 1待支付，2待服务，3技师接单，4技师出发，5技师到达，6服务中，7服务完成 -->
                <div
                  class="f-caption text-bold"
                  :style="{
                    color:
                      item.pay_type == 1
                        ? colorList[colorInd].primaryColor
                        : [2, 3, 4, 5, 6].includes(item.pay_type)
                        ? colorList[colorInd].subColor
                        : item.pay_type == 7
                        ? '#11C95E'
                        : '#333'
                  }"
                >
                  {{ statusType[item.pay_type] }}
                </div>
              </div>
              <div
                class="flex-center mt-lg"
                v-for="(aitem, aindex) in item.order_goods"
                :key="aindex"
              >
                <img class="cover radius-16" :src="aitem.goods_cover" />
                <div class="flex-1 ml-md">
                  <div class="flex-between">
                    <div class="c-title text-bold max-300 ellipsis">
                      {{ aitem.goods_name }}
                    </div>
                    <div class="f-icontext c-desc">x{{ aitem.num }}</div>
                  </div>
                  <div class="flex-center mt-md">
                    <div
                      class="flex-1 f-caption c-caption"
                      style="margin-bottom: 2px"
                    >
                      服务技师：{{ item.coach_info.coach_name }}
                    </div>

                    <div
                      class="f-caption c-warning ml-sm"
                      v-if="aitem.refund_num > 0"
                    >
                      已退x{{ aitem.refund_num }}
                    </div>
                  </div>
                  <div class="f-caption c-caption">
                    预约时间：{{ item.start_time }}
                  </div>
                </div>
              </div>
              <div class="flex-between pt-lg">
                <div class="flex-y-center f-caption c-title">
                  总计：
                  <div class="f-desc c-title text-bold">
                    ¥{{ item.pay_price }}
                  </div>
                </div>
                <div class="flex-warp">
                  <!-- // pay_type 1待支付，2待服务，3技师接单，4技师出发，5技师到达，6服务中，7服务完成，8待评价 -->
                  <!-- 待支付 -->
                  <block v-if="item.pay_type == 1">
                    <div class="order-btn">取消订单</div>
                    <div
                      class="order-btn"
                      :style="{
                        color: '#fff',
                        background: colorList[colorInd].primaryColor,
                        borderColor: colorList[colorInd].primaryColor
                      }"
                    >
                      去支付
                    </div>
                  </block>
                  <!-- 支付超时 -->
                  <block v-if="item.pay_type == -1">
                    <div class="order-btn">删除</div>
                  </block>
                  <!-- 待服务 -->
                  <div class="order-btn" v-if="item.can_refund > 0">
                    申请退款
                  </div>
                  <!-- 已完成 -->
                  <block v-if="item.pay_type == 7">
                    <div class="order-btn" v-if="!item.is_comment">去评价</div>
                    <div
                      class="order-btn"
                      :style="{
                        color: '#fff',
                        background: colorList[colorInd].primaryColor,
                        borderColor: colorList[colorInd].primaryColor
                      }"
                    >
                      再来一单
                    </div>
                  </block>
                </div>
              </div>
            </div>

            <div class="tabbar-list fill-base abs">
              <div class="flex-warp b-1px-t">
                <div
                  class="tabbar-item flex-center flex-column"
                  :style="{
                    color: index === 2 ? colorList[colorInd].primaryColor : ''
                  }"
                  v-for="(item, index) in tabBar"
                  :key="index"
                >
                  <i
                    class="iconfont"
                    :class="index === 2 ? item.selected_img : item.default_img"
                  ></i>
                  <div class="text">{{ item.name }}</div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="space-lg"></div>
    </div>

    <div class="flex-center pd-lg b-1px-t">
      <el-button
        class="mr-md"
        type="danger"
        :plain="true"
        @click="getSystemDefaulDiy"
        >{{ $t('action.defaultSet') }}</el-button
      >
      <el-button type="primary" @click="submitForm">保存</el-button>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
	  navbar: require('@/./style/image/navbar_white_none.png'),
      banner: require('@/./style/image/hdp.png'),
      colorList: [ {
        primaryColor: '#1eb481',
        subColor: '#9ade97'
      }, {
        primaryColor: '#24c376',
        subColor: '#f86c53'
      }, {
        primaryColor: '#A40035',
        subColor: '#F1C06B'
      }, {
        primaryColor: '#db4d4d',
        subColor: '#e28e5f'
      }, {
        primaryColor: '#dd6630',
        subColor: '#e39a32'
      }, {
        primaryColor: '#ebcc3b',
        subColor: '#20252d'
      }, {
        primaryColor: '#8ac4aa',
        subColor: '#232826'
      }, {
        primaryColor: '#8228f9',
        subColor: '#b49fe2'
      }, {
        primaryColor: '#ca2432',
        subColor: '#efd645'
      }, {
        primaryColor: '#db4d4d',
        subColor: '#555555'
      },{
        primaryColor: '#baaa6f',
        subColor: '#dcd5a9'
      }],
      primaryColor: '#24c376',
      subColor: '#f86c53',
      colorInd: 0,
      colorLen: 0,
      tabBar: [{
        name: '首页',
        default_img: 'icon-nav_icon_sy_spe',
        selected_img: 'icon-nav_icon_sy_spe'
      }, {
        name: '技师',
        default_img: 'icon-liliao',
        selected_img: 'icon-liliao'
      }, {
        name: '订单',
        default_img: 'icon-wodedingdan',
        selected_img: 'icon-wodedingdan'
      }, {
        name: '我的',
        default_img: 'icon-wode7',
        selected_img: 'icon-wode7'
      }],
      tabList: [{
        title: '全部',
        sort: 'top desc'
      }, {
        title: '价格',
        sort: 'price',
        sign: 0,
        is_sign: 1
      }, {
        title: '销量',
        sort: 'total_sale',
        sign: 0,
        is_sign: 1
      }, {
        title: '好评度',
        sort: 'star',
        sign: 0,
        is_sign: 1
      }],
      technicianTabList: [{
        title: '全部',
        id: 0
      }, {
        title: '可服务',
        id: 1
      }, {
        title: '服务中',
        id: 5
      }, {
        title: '可预约',
        id: 5
      }],
      orderTabList: [{
        title: '全部',
        id: 0
      }, {
        title: '待支付',
        id: 1
      }, {
        title: '待服务',
        id: 5
      }, {
        title: '服务中',
        id: 6
      }, {
        title: '已完成',
        id: 7
      }],
      imgType: {
        1: 'top',
        2: 'hot',
        3: 'new'
      },
      textType: {
        1: '可服务',
        2: '服务中',
        3: '可预约'
      },
      statusType: {
        '-1': '已取消',
        1: '待支付',
        2: '待服务',
        3: '技师接单',
        4: '技师出发',
        5: '技师到达',
        6: '服务中',
        7: '已完成'
      },
      service_btn_color: '',
      service_font_color: '',
      serviceList: [{
        title: '中式推拿',
        cover: require('@/./style/image/shop/zstn.jpg'),
        price: 188,
        total_sale: 162,
        time_long: 60,
        init_price: 230,
        sub_title: '缓解颈椎，腰肌劳损'
      }, {
        title: '港式舒缓SAP',
        cover: require('@/./style/image/shop/sap.png'),
        price: 598,
        total_sale: 220,
        time_long: 120,
        init_price: 798,
        sub_title: '精油养生，全身推拿'
      }, {
        title: '完美足浴',
        cover: require('@/./style/image/shop/zy.jpg'),
        price: 178,
        total_sale: 120,
        time_long: 60,
        init_price: 298,
        sub_title: '新陈代谢，细胞再生'
      }],
      coachList: [{
        user_id: 1,
        coach_name: '家悦',
        work_img: require('@/./style/image/shop/jy.png'),
        is_work: 1,
        star: 5,
        distance: '4.89km',
        comment_num: 0,
        collect_num: 1,
        order_num: 0,
        is_collect: 0,
        near_time: '11:00',
        text_type: 1,
        coach_type_status: 3
      }, {
        user_id: 1,
        coach_name: '柠檬',
        work_img: require('@/./style/image/shop/nm.png'),
        is_work: 1,
        star: 4,
        distance: '5.88km',
        comment_num: 1,
        collect_num: 2,
        order_num: 1,
        is_collect: 1,
        near_time: '13:56',
        text_type: 2,
        coach_type_status: 2
      }, {
        user_id: 1,
        coach_name: '任敏',
        work_img: require('@/./style/image/shop/qq.png'),
        is_work: 0,
        star: 5,
        distance: '7.99km',
        comment_num: 2,
        collect_num: 931,
        order_num: 8,
        is_collect: 1,
        near_time: '11:08',
        text_type: 3,
        coach_type_status: 1
      }],
      orderList: [{
        order_code: '20230318181500068600000686',
        pay_type: 7,
        transaction_id: '20230318181500068600000686',
        pay_price: '598',
        start_time: '2023-03-18 02:08',
        end_time: '2023-03-18 02:18',
        coach_info: {
          coach_name: '柠檬'
        },
        order_goods: [{
          goods_name: '港式舒缓SAP',
          goods_cover: require('@/./style/image/shop/sap.png'),
          price: 1,
          num: 1,
          can_refund_num: 1,
          true_price: 1
        }],
        can_refund: 0
      }, {
        order_code: '20230318171623025600000256',
        pay_type: 2,
        transaction_id: '20230318171623025600000256',
        pay_price: '366',
        start_time: '2023-03-18 09:38',
        end_time: '2023-03-18 09:03',
        coach_info: {
          coach_name: '家悦'
        },
        order_goods: [{
          goods_name: '中式推拿',
          goods_cover: require('@/./style/image/shop/zstn.jpg'),
          price: 1,
          num: 1,
          can_refund_num: 1,
          true_price: 1
        }, {
          goods_name: '完美足浴',
          goods_cover: require('@/./style/image/shop/zy.jpg'),
          price: 19.5,
          num: 3,
          can_refund_num: 3,
          refund_num: 2,
          true_price: 19.5
        }],
        can_refund: 1
      }]
    }
  },
  created () {
    this.getFormInfo()
  },
  activated () {
  },
  methods: {
    async changeIndex (index) {
      this.colorInd = index
    },
    async getFormInfo () {
      let { data } = await this.$api.system.configInfo()
      let { primaryColor, subColor, service_btn_color: sbtn, service_font_color: sfont } = data
      sbtn = !sbtn ? '#282B34' : sbtn
      sfont = !sfont ? '#EBDDB1' : sfont
      this.service_btn_color = sbtn
      this.service_font_color = sfont

      let colorList = JSON.parse(JSON.stringify(this.colorList))
      let arr = colorList.filter(item => {
        return item.primaryColor === primaryColor && item.subColor === subColor
      })
      if (arr.length === 0) {
        colorList.push({
          primaryColor,
          subColor
        })
      } else {
        colorList.push({
          primaryColor: '',
          subColor: ''
        })
      }
      this.colorList = colorList
      this.colorLen = colorList.length
      let ind = -1
      colorList.map((item, index) => {
        if (item.primaryColor === primaryColor && item.subColor === subColor) {
          ind = index
        }
      })
      this.colorInd = ind === -1 ? colorList.length - 1 : ind
    },
    async getSystemDefaulDiy () {
      this.colorInd = 0
      await this.submitForm()
    },
    async submitForm () {
      let { primaryColor, subColor } = this.colorList[this.colorInd]
      if (!primaryColor || !subColor) {
        this.$message.error(!primaryColor ? `请选择主色` : `请选择辅色`)
        return
      }
      let { code } = await this.$api.system.configUpdate({ primaryColor, subColor })
      if (code !== 200) return
      this.$message.success(this.$t('tips.successSave'))
    }
  }
}
</script>

<style lang="scss" scoped>
.color-item {
  width: 84px;
  height: 68px;
  margin: 10px 10px 0 0;
  padding-top: 2px;
  border: 1px solid white;
  cursor: pointer;
  .iconfont {
    color: #429dff;
    margin-top: 5px;
  }
}
.color-item.active {
  border: 1px solid #429dff;
  border-radius: 5px;
  box-shadow: 0px 4px 12px 1px rgba(66, 157, 255, 0.15);
}
.primaryColor,
.subColor {
  width: 40px;
  height: 40px;
  border-radius: 5px 0 0 5px;
}
.subColor {
  border-radius: 0 5px 5px 0;
}
.color-page {
  width: 340px;
  height: 640px;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid #eee;
  .navbar-img {
    width: 340px;
    height: 52px;
  }
  .navbar-title {
    width: 340px;
    height: 52px;
    .flex-center {
      height: 52px;
      padding-top: 18px;
    }
  }
  .tab-info {
    width: 340px;
    height: 210px;
    .banner-img {
      width: 340px;
      height: 180px;
      display: block;
      object-fit: cover;
    }

    .tab-list {
		width: 100%;
		margin-top: -10px;
		padding-right: 20px;
		border-radius: 20px 20px 0 0;
		z-index: 9;
      .tab-item {
        width: 25%;
        height: 40px;
        padding: 0 10px;
        .tab-item-sanjao {
          top: 6px;
          right: -3px;
          width: 15px;
          height: 25px;
          -webkit-transform: scale(0.6);
          transform: scale(0.6);
          .iconfont {
            font-size: 10px;
            color: #ccc;
          }

          .up {
            top: 0;
            left: 0;
          }

          .down {
            bottom: 12px;
            left: 0;
          }
        }
      }
    }
  }
  // 首页
  .service-item {

    margin-bottom: 0;
    padding: 16px;
    border-bottom: 1px solid #eee;
    .cover {
      width: 72px;
      height: 72px;
      border-radius: 8px;
      object-fit: cover;
    }

    .time-long {
      min-width: 36px;
      height: 15px;
      padding: 0 2px;
      background: linear-gradient(270deg, #4c545a 0%, #282b34 100%);
      border-radius: 2px;
      font-size: 10px;
      transform: scale(0.9);
      color: #ffeeb9;
      margin-right: 4px;
    }

    .f-icontext {
      font-size: 9px;
    }

    .small-text {
      font-size: 9px;
      margin-left: 2px;
    }
    .text-delete {
      color: #b9b9b9;
      transform: scale(0.8);
    }

    .item-btn {
      width: 65px;
      height: 23px;
      border-radius: 50px;
    }
  }
  // 技师

  .fix-info {
    height: 108px;

    .space-top {
      width: 100%;
      height: 20px;
      top: 0;
    }

    .search-info {
      width: 100%;
      top: 0;
      border-radius: 20px;
      font-size: 13px;

      .city-info {
        width: 65px;

        .iconfont {
          font-size: 10px;
          transform: scale(0.4);
        }
      }
      .search-item {
        height: 32px;
        padding: 0 15px;
        line-height: 32px;
        .iconfont {
          font-size: 14px;
        }
      }
    }
  }
  .coach-item {
    margin: 8px;
    margin-bottom: 0;
    padding: 12px;
    border-radius: 8px;
    .top-tag {
      width: 18px;
      height: 13px;
      color: #b75e1d;
      background: linear-gradient(90deg, #dfb885 0%, #fce0ad 100%);
      border-radius: 3px 0 3px 0;
      top: 0;
      left: 0;
      .text {
        transform: scale(0.8);
      }
    }

    .item-img {
      width: 58px;
      height: 58px;
      object-fit: cover;
    }

    .top-img {
      width: 70px;
      height: 67px;
      top: -3px;
      left: -6px;
    }

    .hot-img {
      width: 37px;
      height: 25px;
      top: 38px;
      left: 12px;
    }

    .new-img {
      width: 19px;
      height: 26px;
      top: 41px;
      left: 39px;
    }

    .item-tag {
      width: 50px;
      height: 16px;
      color: #000;
      background: rgba(216, 216, 216, 0.3);
      margin-top: 9px;
      margin-bottom: 5px;
    }
    .more-img {
	  width: 58px;
      height: 16px;
      border-radius: 4px;
      transform: rotateZ(360deg);
    }

    .can-service-btn {
      width: 65px;
      height: 40px;
      margin-bottom: 15px;

	  .time {
		height: 20px;
		line-height: 20px;
		text-align: center;
		width: 100%;
	  }

      .text {
        width: 100%;
        height: 20px;
        line-height: 20px;
        text-align: center;
      }
    }
    .iconyduixingxingshixin {
      font-size: 14px;
      background-image: -webkit-linear-gradient(
        270deg,
        #fad961 0%,
        #f76b1c 100%
      );
    }

    .star-text {
      color: #ff9519;
      margin-left: 3px;
    }

    .order-num {
      color: #4d4d4d;
      margin-left: 7px;
    }

    .item-btn {
      width: 65px;
      height: 23px;
      border-radius: 50px;
    }
  }
  // 订单
  .order-tablist {
    width: 100%;
    height: 50px;
    .tablist-item {
      .line {
        width: 40px;
        height: 3px;
        border-radius: 3px;
        left: 50%;
        bottom: 0;
        margin-left: -20px;
      }
    }
  }
  .order-item {
    margin: 8px;
    margin-bottom: 0;
    padding: 12px;
    border-radius: 8px;
    .grayscale {
      .c-title,
      .c-warning {
        color: #999;
      }
    }

    .cover {
      width: 70px;
      height: 70px;
      object-fit: cover;
      border-radius: 8px;
    }
    .order-btn {
      min-width: 70px;
      padding: 0 8px;
      line-height: 25px;
      color: #5b5b5b;
      background: #fff;
      border-radius: 50px;
      border: 1px solid #979797;
      transform: rotateZ(360deg);
      font-size: 10px;
      font-weight: bold;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-left: 10px;
    }
  }
  .tabbar-list {
    width: 100%;
    height: 44px;
    bottom: 0;
    .tabbar-item {
      width: 25%;
      height: 44px;
      .iconfont {
        margin-top: 5px;
      }
      .text {
        font-size: 10px;
        transform: scale(0.8);
      }
    }
  }
}
</style>
